package com.coin.feignclient;

import com.coin.model.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Auther: 李 力
 * @Date: 2025/6/9
 * @Description: com.coin.feignclient
 * @version: 1.0
 */
@FeignClient(value = "admin-service", path = "/users")
public interface SysUserFeignClient {

    @GetMapping("/name/{userId}")
    public R<String> getUserNameById(@PathVariable("userId") Long userId);
}
